<?php
  error_reporting(E_ALL^E_NOTICE);
  session_start();
  require_once ('../../config/config.php'); 
  $res=mysqli_query($con,"select VERSION()");
  $row=mysqli_fetch_row($res);
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-L-admin1.0</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="../css/font.css">
        <link rel="stylesheet" href="../css/xadmin.css">
    </head>
    <body>
    <div class="x-body layui-anim layui-anim-up">
        <blockquote class="layui-elem-quote">欢迎您，<span class="x-red"><?php echo $_SESSION['member'];?></span>！当前时间: <?php echo date("Y/m/d H:i:s");?></blockquote>
        <fieldset class="layui-elem-field">
            <legend>数据统计</legend>
            <div class="layui-field-box">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>商家总数</h3>
                                                <p>
                                                    <cite><?php 
									$total=mysqli_num_rows(mysqli_query($con,"select * from business"));
									echo $total;
								?>个</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>会员总数</h3>
                                                <p>
                                                    <cite><?php 
									$total=mysqli_num_rows(mysqli_query($con,"select * from member"));
									echo $total;
								?></cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>兼职总数</h3>
                                                <p>
                                                    <cite><?php 
									$total=mysqli_num_rows(mysqli_query($con,"select * from content"));
									echo $total;
								?></cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>评论总数</h3>
                                                <p>
                                                    <cite><?php 
									$total=mysqli_num_rows(mysqli_query($con,"select * from comment"));
									echo $total;
								?></cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>认证商家总数</h3>
                                                <p>
                                                    <cite><?php 
									$total=mysqli_num_rows(mysqli_query($con,"select * from bond where state='1'"));
									echo $total;
								?></cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>正在兼职人数</h3>
                                                <p>
                                                    <cite><?php 
									$total=mysqli_num_rows(mysqli_query($con,"select * from job where state='1'"));
									echo $total;
								?></cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>系统通知</legend>
            <div class="layui-field-box">
                <table class="layui-table" lay-skin="line">
                    <tbody>
                        <tr>
                            <td >
                                <a class="x-a" href="/" target="_blank">系统正在开发中，可能会出现未知问题！如遇未知问题，请与工程师沟通！</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>系统信息</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th>服务器地址</th>
                            <td><?php echo  $_SERVER['SERVER_NAME'] ;?></td></tr>
                        <tr>
                            <th>服务器端口</th>
                            <td><?php echo $_SERVER['SERVER_PORT'];?></td></tr>
                        <tr>
                            <th>操作系统</th>
                            <td><?php echo php_uname('s').php_uname('r');?></td></tr>
                        <tr>
                            <th>PHP版本</th>
                            <td><?php echo PHP_VERSION ;?></td></tr>
                        <tr>
                            <th>PHP运行方式</th>
                            <td><?php echo php_sapi_name();?></td></tr>
                        <tr>
                            <th>MYSQL版本</th>
                            <td><?php echo $row[0];?></td></tr>
                        <tr>
                            <th>Zend版本</th>
                            <td><?php echo Zend_Version();?></td></tr>
                        <tr>
                            <th>上传附件限制</th>
                            <td><?php echo get_cfg_var ("upload_max_filesize")?get_cfg_var ("upload_max_filesize"):"不允许";?></td></tr>
                        <tr>
                            <th>执行时间限制</th>
                            <td><?php echo get_cfg_var("max_execution_time")."秒 ";?></td></tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>开发团队</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th>Copyleft</th>
                            <td>极客生活(www.geeklife.top)
                                <a href="http://www.geeklife.top/" class='x-a' target="_blank">访问官网</a></td>
                        </tr>
                        <tr>
                            <th>开发者</th>
                            <td>sdrzlyl(sdrzlyl@petalmail.com)</td></tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <blockquote class="layui-elem-quote layui-quote-nm">感谢layui,百度Echarts,jquery,本系统由L-admin提供技术支持。</blockquote>
    </div>
   
    </body>
</html>